import { set } from "nprogress";
import { defineStore } from "pinia";

interface RoleState {
  role: string;
  name: string;
  userid: number
}

export const useRoleStore = defineStore('userRole', {
  state: (): RoleState => ({
    role: '',
    name: '',
    userid: null
  }),
  actions: {
    setRole(userRole) {
      this.role = userRole
    },
    setName(userName) {
      this.name = userName
    },
    setUserid(userid) {
      this.userid = userid
    }
  },
  getters: {
    
  },
});